﻿<%@ Page Title="审查评分记录" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="ReviewRecordStep2.aspx.cs" Inherits="PCMSofCC.GroupLeader.ReviewRecordStep2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
    <title>Coca-Cola 审查评分记录</title>
    <link href="../css/content.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" runat="server">
    <div id="reviewGridView" class="reviewGridView">
        <asp:GridView ID="gvCompleteRecord" runat="server" AutoGenerateColumns="False" CssClass="gridView"
            HorizontalAlign="Center" DataSourceID="LinqDataSource1" RowStyle-CssClass="gridViewItem1"
            AlternatingRowStyle-CssClass="gridViewItem2" DataKeyNames="Id" PageSize="6" FooterStyle-CssClass="gridViewHead">
            <RowStyle HorizontalAlign="Center" />
            <Columns>
                <asp:BoundField HeaderStyle-CssClass="gridViewHead" DataField="Name" HeaderText="评估项目"
                    SortExpression="ScoreEntry">
                    <HeaderStyle CssClass="gridViewHead"></HeaderStyle>
                </asp:BoundField>
                <asp:BoundField HeaderStyle-CssClass="gridViewHead" DataField="MaxScore" HeaderText="考核分数"
                    SortExpression="ScoreEntry">
                    <HeaderStyle CssClass="gridViewHead"></HeaderStyle>
                </asp:BoundField>
                <asp:BoundField HeaderStyle-CssClass="gridViewHead" DataField="Criteria" HeaderText="评分标准"
                    SortExpression="ScoreEntry">
                    <HeaderStyle CssClass="gridViewHead"></HeaderStyle>
                </asp:BoundField>
                <asp:BoundField HeaderStyle-CssClass="gridViewHead" DataField="Remark" HeaderText="备注"
                    SortExpression="ScoreEntry">
                    <HeaderStyle CssClass="gridViewHead"></HeaderStyle>
                </asp:BoundField>
                <asp:BoundField HeaderStyle-CssClass="gridViewHead" DataField="Score" HeaderText="检查分数"
                    SortExpression="Score">
                    <HeaderStyle CssClass="gridViewHead"></HeaderStyle>
                </asp:BoundField>
                <asp:BoundField HeaderStyle-CssClass="gridViewHead" DataField="Problem" HeaderText="问题点"
                    SortExpression="Problem">
                    <HeaderStyle CssClass="gridViewHead"></HeaderStyle>
                </asp:BoundField>
                <asp:BoundField HeaderStyle-CssClass="gridViewHead" DataField="Solution" HeaderText="整改措施"
                    SortExpression="Solution">
                    <HeaderStyle CssClass="gridViewHead"></HeaderStyle>
                </asp:BoundField>
                <asp:TemplateField HeaderStyle-CssClass="gridViewHead" HeaderText="审核意见" SortExpression="RemarkByGroupLeader">
                    <ItemTemplate>
                        <asp:TextBox ID="tbxRemarkByGroupLeader" runat="server" Text='<%# Bind("RemarkByGroupLeader") %>'
                            Rows="3" TextMode="MultiLine"></asp:TextBox>
                    </ItemTemplate>
                    <HeaderStyle CssClass="gridViewHead"></HeaderStyle>
                </asp:TemplateField>
            </Columns>
            <FooterStyle CssClass="gridViewHead"></FooterStyle>
            <AlternatingRowStyle CssClass="gridViewItem2"></AlternatingRowStyle>
        </asp:GridView>
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="PCMSofCC.PCMSofCCDataContext"
            TableName="RecordEntry" Where="RecordId == @RecordId" AutoSort="False" Select="new(ScoreEntry.Name, ScoreEntry.MaxScore, ScoreEntry.Criteria, ScoreEntry.Remark, Id, Score, Problem, Solution, RemarkByGroupLeader)"
            AutoPage="False">
            <WhereParameters>
                <asp:Parameter Name="RecordId" Type="Object" />
            </WhereParameters>
        </asp:LinqDataSource>
    </div>
    <p style="visibility: hidden">
        <table>
            <tr>
                <th>
                    备注
                </th>
                <th>
                    是否通过
                </th>
            </tr>
            <tr>
                <td>
                    <asp:TextBox ID="tbxRemark" runat="server" Rows="4" TextMode="MultiLine"></asp:TextBox>
                </td>
                <td>
                    <asp:RadioButtonList ID="rblHasPassed" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem>是</asp:ListItem>
                        <asp:ListItem>否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
        </table>
    </p>
    <br />
    <asp:Button ID="btnSubmit" runat="server" Text="提交" OnClick="btnSubmit_Click" CssClass="button2" />
</asp:Content>
